﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MINERP.DAL;
using MINERP.DAL.InfoConfig;


namespace MINERP.BLL.InfoConfig
{
    public  class TechBLL
    {
        #region //Private Fields


        #endregion


        #region //Public Properties

        #endregion



        #region //Public Methods
        /// <summary>
        /// Get tech list
        /// </summary>
        /// <returns></returns>
        public List<tb_Tech> GetTechList()
        {
            return TechDAL.GetTechList();
        }
        /// <summary>
        /// Get tech object
        /// </summary>
        /// <param name="techId"></param>
        /// <returns></returns>
        public tb_Tech GetTechObj(string techName)
        {
            return TechDAL.GetTechObj(techName);
        }
        /// <summary>
        /// Get tech object
        /// </summary>
        /// <param name="techId"></param>
        /// <returns></returns>
        public tb_Tech GetTechObj(int id)
        {
            return TechDAL.GetTechObj(id);
        }
        // Add Tech
        public void Add(tb_Tech obj) 
        {
            TechDAL.Add(obj);
        }
        // Update Tech
        public void Update()
        {
            TechDAL.Update();
        }
        // Delete Tech
        public void Delete(tb_Tech obj)
        {
            TechDAL.Delete(obj);
        }
        #endregion
    }
}
